//
//  MyAttendanceCell.m
//  SchoolTask
//
//  Created by feel on 16/8/25.
//  Copyright © 2016年 sm. All rights reserved.
//

#import "MyAttendanceCell.h"
#define kScreenW [UIScreen mainScreen].bounds.size.width
#define kScreenH [UIScreen mainScreen].bounds.size.height
@interface MyAttendanceCell ()


@end
@implementation MyAttendanceCell

//*classNameLb
//attendance;
//ate;
//leave;
//askLeave;
//crunk;

- (void)setCellLabel {
    
    //    414 320  736 480
    CGFloat w = 414 / kScreenW;
    CGFloat h = 736 / kScreenH;

    _classNameLb.text = @"艺术设计";
    _attendance.text  = @"23";
    _late.text        = @"1";
    _leave.text       = @"3";
    _askLeave.text    = @"1";
    _crunk.text       = @"1";
    
    CGRect rect = _classNameLb.frame;
    rect.size.width = 100;
    _classNameLb.frame = rect;
    
    _classNameLb.font = [UIFont fontWithName:@"MicrosoftYaHei" size:15/w];
    _attendance.font = [UIFont fontWithName:@"MicrosoftYaHei" size:15/w];
    _late.font = [UIFont fontWithName:@"MicrosoftYaHei" size:15/w];
    _leave.font = [UIFont fontWithName:@"MicrosoftYaHei" size:15/w];
    _askLeave.font = [UIFont fontWithName:@"MicrosoftYaHei" size:15/w];
    _crunk.font = [UIFont fontWithName:@"MicrosoftYaHei" size:15/w];


    _classNameLb.textColor = [UIColor colorWithRed:142/255.0 green:142/255.0 blue:142/255.0 alpha:1];
    _attendance.textColor = [UIColor colorWithRed:142/255.0 green:142/255.0 blue:142/255.0 alpha:1];
    _late.textColor = [UIColor colorWithRed:142/255.0 green:142/255.0 blue:142/255.0 alpha:1];
    _leave.textColor = [UIColor colorWithRed:142/255.0 green:142/255.0 blue:142/255.0 alpha:1];
    _askLeave.textColor = [UIColor colorWithRed:142/255.0 green:142/255.0 blue:142/255.0 alpha:1];
    _crunk.textColor = [UIColor colorWithRed:142/255.0 green:142/255.0 blue:142/255.0 alpha:1];
}

@end
